package top.cwk.dubbo.web.controller.hello;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Controller
public class LoggerTestController {

	private final Logger logger = LoggerFactory.getLogger(this.getClass());
	
	@RequestMapping("/logs")
	public String printLog(){
		logger.trace("======trace");  
		logger.debug("======debug");  
		logger.info("======info");  
		logger.warn("======warn");  
		logger.error("======error");  
	    return "OK";
	}
	
}
